package org.niu.array;

import java.util.Arrays;

public class Merge {
    public void merge(int A[], int m, int B[], int n) {
        int k = 0;
        for(int i = m+1;m < m+n && k < n;i++){
            A[i] = B[k++];
        }
        Arrays.sort(A);
    }
}
